﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="Index_document.aspx.cs" Inherits="WEB.T_document.Index_document" %>

    
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    单证查看 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
  <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <table style="width: 100%;">
    <tr height="30px">
            <td>
            </td>
        </tr>
        <tr align="center">
            <td>
                <table width="550px">
                    <tr>
                        <td align="right">
                            时间范围：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="tbTimestart" runat="server" class="Wdate"></asp:TextBox>
                            至<asp:TextBox ID="tbTimestop" runat="server" class="Wdate"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:DropDownList ID="ddlQuery" runat="server" Style="text-align: right" 
                                Width="101px" AutoPostBack="True">
                                <asp:ListItem Value="Cu_Customer.CustomerName">客户名</asp:ListItem>
                                <asp:ListItem Value="T_sheetInfo.sheetID">委托单单号</asp:ListItem>
                                
                          
                                <asp:ListItem Value="Info_code.codename">货物类别</asp:ListItem>
                                
                          
                            </asp:DropDownList>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="tbQuery" runat="server" Width="320px"></asp:TextBox>
                            <asp:Button ID="btnQuery" runat="server" Text="  查 询" OnClick="btnQuery_Click" CssClass="Submit_Query" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr><td>
    <table style="width: 100%;">
        <tr>
            <td align="center" class="style1" colspan="3" valign="top">
                <asp:GridView ID="gvDocument" runat="server" AutoGenerateColumns="False" Width="1300px"
                    OnRowDeleting="gvDocument_RowDeleting" DataKeyNames="docID" 
                    CellPadding="4" ForeColor="Black"
                    GridLines="Vertical" OnRowDataBound="gvDocument_RowDataBound" OnRowCommand="gvDocument_RowCommand"
                    CssClass="distance" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
                    BorderWidth="1px" ondatabound="gvDocument_DataBound">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:ButtonField ButtonType="Button" CommandName="download1" Text="下载" >
                        <ItemStyle Width="40px" />
                        </asp:ButtonField>
                        <asp:CommandField ShowDeleteButton="True">
                            <ControlStyle BorderStyle="None" ForeColor="#003366" />
                            <HeaderStyle Width="41px" />
                        <ItemStyle Width="40px" />
                        </asp:CommandField>
                        <asp:BoundField DataField="sheetID" HeaderText="委托单单号">
                            <HeaderStyle Width="100px" />
                        <ItemStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CustomerName" HeaderText="客户名" >
                        <ItemStyle Width="65px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="docViewName" HeaderText="单证模板">
                        <ItemStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="codeName" HeaderText="货物类别">
                        <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="remark" HeaderText="已上传单证">
                            <HeaderStyle Width="80px" />
                        <ItemStyle Width="200px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="docName5" HeaderText="未上传单证">
                        <ItemStyle Width="200px" />
                        </asp:BoundField>
                        <asp:TemplateField Visible="False">
                            <ItemTemplate>
                                <asp:Button ID="Btnwj1" runat="server"  Text="文件1" />
                                <asp:Button ID="Btnwj2" runat="server" Text="文件2" />
                                <asp:Button ID="Btnwj3" runat="server" Text="文件3" />
                                <asp:Button ID="Btnwj4" runat="server" Text="文件4" />
                            </ItemTemplate>
                            <ItemStyle Width="150px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="username" HeaderText="录入员名字">
                            <HeaderStyle Width="80px" />
                        <ItemStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="inputDate" HeaderText="录入日期" 
                            DataFormatString="{0:d}">
                            <HeaderStyle Width="120px" />
                        <ItemStyle Width="80px" />
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" VerticalAlign="Top" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="60px" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" VerticalAlign="Top" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    </td></tr></table> 
</asp:Content>
